$(function(){
		/*初始化表格*/
		$('#hotelBase').datagrid({
    		url:'backhotelBasejson',
    		collapsible:true,
    		fit:true,
			fitColumns:true,
			toolbar:'#footer',
			pagination:true,
			pageSize:20,
			pageList:[20,50,100,200],
			remoteSort:false,
   			columns:[[
   			 	{field:'ck',checkbox:true},
   			 	{field:'hotelID',hidden:'true'},
				{field:'hotelName',title:'酒店名称',align:'center',width:'10%'},
				{field:'hotelCode',title:'酒店代号',align:'center',width:'10%'},
				{field:'rate',title:'酒店星级',align:'center',width:'10%'},
				
				{field:'type',title:'酒店类型',align:'center',width:'10%',formatter: function(value,row,index){
	        	if(value == 0)
	        		return '星级酒店';
				if(value == 1)
	        		return '快捷酒店';
if(value == 2)
	        		return '民宿';
				else
				return '别墅';
	        }},
{field:'userMobile',title:'联系人',align:'center',width:'10%'},
				{field:'userMobile',title:'联系电话',align:'center',width:'10%'},
				{field:'userType',title:'用户类型',align:'center',width:'10%',formatter: function(value,row,index){
	        	if(value == 1)
	        		return '员工';
if(value == 2)
	        		return '导游';
if(value == 3)
	        		return '司机';
				else
				return '主播';
	        }},
				
					{field:'memberState',title:'用户状态',align:'center',width:'10%',formatter: function(value,row,index){
	        	if(value == 0)
	        		return '普通账号';
				else
				return '会员账号';
	        }},
				{field:'upUserID',title:'推荐人编码',align:'center',width:'10%'},
				{field:'upUserName',title:'推荐人姓名',align:'center',width:'10%'},
				{field:'memo',title:'备注',align:'center',width:'28%'}
    		]]
		});
			
});




